package com.gitee.feizns.web.main.controller;

import com.sun.org.apache.bcel.internal.generic.RETURN;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author feizns
 * @since 2019/5/19 0019
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public Object test(HttpServletResponse resp, HttpSession session) throws InterruptedException {
////        resp.setStatus(700);
////        return new ResponseEntity<Object>(HttpStatus."");
////        return "";
////        Thread.sleep(323423443);
//        return ResponseEntity.status(HttpStatus.REQUEST_TIMEOUT).build();
        return session.getId();
    }

}
